package data;

/**
 * 方块数据类
 */
public class BlockData {
    // -------------------- 数据设计 --------------------
    private int x, y;                   // 坐标
    private int blockKind = 1;          // 类型 1砖块2铁块
    private int width = 30, height = 30;// 尺寸
    // -------------------- 数据设计 --------------------

    public BlockData(int blockKind, int x, int y) {
        this.blockKind = blockKind;
        this.x = x;
        this.y = y;
    }

    public int getX() { return x; }
    public void setX(int x) { this.x = x; }
    public int getY() { return y; }
    public void setY(int y) { this.y = y; }
    public int getBlockKind() { return blockKind; }
    public int getWidth() { return width; }
    public int getHeight() { return height; }
}